.api {
  > div {
    > table {
      width: 100%;
      margin-bottom: 45px;
      font-size: 14px;
      line-height: 1.5em;
      background-color: #fff;
      border-collapse: collapse;

      strong {
        font-weight: normal;
      }

      td,
      th {
        max-width: 250px;
        padding: 15px;
        border-bottom: 1px solid #dcdfe6;
      }

      th {
        color: #909399;
        font-weight: normal;
        white-space: nowrap;
        text-align: left;
      }

      td {
        color: #606266;
      }

      th:first-child,
      td:first-child {
        padding-left: 10px;
      }
    }
  }
}

.markdown {
  color: #000;
  font-size: 14px;
  line-height: 2;
}

.highlight {
  line-height: 1.5;
}

.markdown p > img {
  margin: 34px 0;
  box-shadow: 0 8px 20px rgba(143, 168, 191, 0.35);
}

.markdown h1 {
  margin-top: 8px;
  margin-bottom: 20px;
  color: #000;
  font-weight: 500;
  font-size: 30px;
  font-variant: tabular-nums;
  line-height: 38px;

  .subtitle {
    margin-left: 12px;
  }
}

.markdown h2 {
  font-size: 24px;
  line-height: 32px;
}

.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
  clear: both;
  margin: 1.6em 0 0.6em;
  color: #000;
  font-weight: 500;
  font-variant: tabular-nums;
}

.markdown h3 {
  font-size: 18px;
}

.markdown h4 {
  font-size: 16px;
}

.markdown h5 {
  font-size: 14px;
}

.markdown h6 {
  font-size: 12px;
}

.markdown hr {
  clear: both;
  height: 1px;
  margin: 56px 0;
  border: 0;
}

.markdown p,
.markdown pre {
  margin: 1em 0;
  text-align: left;
}

.block ul > li {
  margin-bottom: 10px;
  margin-left: 20px;
  padding-left: 4px;
  font-size: 16px;
  list-style-type: circle;

  code {
    color: red;
  }

  &:empty {
    display: none;
  }
}

.block ol > li {
  margin-left: 20px;
  padding-left: 4px;
  font-size: 20px;
  list-style-type: decimal;
}

.block ul > li > p,
.block ol > li > p {
  margin: 0.2em 0;
  font-size: 20px;
}

.markdown code {
  margin: 0 1px;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
  background: #f2f4f5;
  border: 1px solid #eee;
  border-radius: 3px;
}

.markdown pre {
  font-family: 'Lucida Console', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  background: #f2f4f5;
}

.markdown pre code {
  margin: 0;
  padding: 0;
  overflow: auto;
  color: #000;
  background: #f2f4f5;
  border: none;
}

.markdown strong,
.markdown b {
  font-weight: 500;
}

.markdown > table {
  width: 100%;
  margin: 8px 0 16px;
  empty-cells: show;
  border: 1px solid #000;
  border-collapse: collapse;
  border-spacing: 0;
}

.markdown > table th {
  color: #5c6b77;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.02);
}

.markdown > table th,
.markdown > table td {
  padding: 16px 24px;
  text-align: left;
  border: 1px solid #000;
}

.markdown blockquote {
  margin: 1em 0;
  padding-left: 0.8em;
  color: #000;
  font-size: 90%;
  border-left: 4px solid #000;
}

.markdown blockquote p {
  margin: 0;
}

.markdown .anchor {
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.markdown .waiting {
  color: #ccc;
  cursor: not-allowed;
}

.markdown h1:hover .anchor,
.markdown h2:hover .anchor,
.markdown h3:hover .anchor,
.markdown h4:hover .anchor,
.markdown h5:hover .anchor,
.markdown h6:hover .anchor {
  display: inline-block;
  opacity: 1;
}

// For Changelog
.markdown ul.ant-timeline {
  line-height: 2;

  li.ant-timeline-item {
    margin: 0;
    padding: 0 0 30px;
    list-style: none;

    .ant-timeline-item-content {
      position: relative;
      top: -14px;
      padding-left: 32px;
      font-size: 14px;

      > h2 {
        margin-top: 0;
        padding-top: 4px;
      }
    }
  }

  li.ant-timeline-item:first-child {
    margin-top: 40px;
  }
}

.language-shell,
.language-javascript {
  margin: 16px 0 !important;
  padding: 12px 20px !important;
  overflow: auto;
}
